@echo off
taskkill -f -t -im javaw.exe
FOR /F "eol=; tokens=2,2 delims==" %%i IN ('findstr /i "server.port" conf.properties') DO set port=%%i    
set path=Java\jdk1.8.0_131\bin
set "port=%port: =%"
START  "ddBook" "%path%\javaw" -jar ddbook-1.0.jar --server.port=%port%
pause

